﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Labs
{
    class Program
    {
        static void Main(string[] args)
        {
            double r = double.Parse(Console.ReadLine());
            string coords = Console.ReadLine();
            double x = double.Parse(coords.Split(' ')[0]);
            double y = double.Parse(coords.Split(' ')[1]);

            Console.WriteLine(
                ((x * x + y * y <= r * r) && x <= 0 && y >= 0 ||
                (y >= -2*x) && (y >= 2*x - 2*r) && (y <= 0)).ToString()
            );            
        }
    }
}
